Use the function \(f(x)=x^2+1\) and \(g(x) = \displaystyle\frac{{1}}{{x}}\) to answer the following
- Find \(f(g(x))\).
- What is the domain of \(f(g(x))\)?
- Find \(g(f(x))\).
- What is the domain of \(g(f(x))\)?
Solution
- \(f(g(x))=\displaystyle\frac{{1}}{x^2}+1\).
- Domain of \(f(g(x))\): \((-\infty,0)\cup(0,\infty)\)
- \(g(f(x))=\displaystyle\frac{{1}}{x^2+1}\)
- Domain of \(g(f(x))\): \((-\infty,\infty)\)
In General: when composing functions, first consider the domain of the inner function, then consider the domain of the result.